/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dotexe.webframework.core.clientactions;

import org.json.JSONException;
import org.json.JSONObject;

/**
 *
 * @author jovan.tomasevic
 */
public class ShowInfoMessageConfiguration extends ClientActionConfiguration{
    public ShowInfoMessageConfiguration() throws JSONException{
        this("", "");
        this.setType("ShowInfoMessage");
    }

    public ShowInfoMessageConfiguration(String caption, String message) throws JSONException{
        super();
        this.put("Caption", caption);
        this.put("Text", message);
        this.setType("ShowInfoMessage");
    }

    public String getCaption() throws JSONException{
        return this.getString("Caption");
    }
    public void setCaption(String value) throws JSONException{
        if(value == null){
            this.put("Caption", JSONObject.NULL);
        }
        else{
            this.put("Caption", value);
        }
    }

    public String getText() throws JSONException{
        return this.getString("Text");
    }
    public void setText(String value) throws JSONException{
        if(value == null){
            this.put("Text", JSONObject.NULL);
        }
        else{
            this.put("Text", value);
        }
    }
}
